<?php
/**
 * 获取玩家充值过后当前实时金币,道具数量
 */
class GetCurMoney extends APIBase {
	public $tag = "GetCurMoney";
	
	public function before() {
		return true;
	}

	public function logic() {
		$ret = $this->data_redis->hMGet("hu:{$this->uid}",array("money","coin","changeCardtoolNum","betsDoubletoolNum","banComparetoolNum"));
		$data = array();
		$data['money'] = (int)$ret["money"];
		$data['coin'] = (int)$ret["coin"];
		$data['changeCardtoolNum'] = (int)$ret["changeCardtoolNum"];
		$data['betsDoubletoolNum'] = (int)$ret["betsDoubletoolNum"];
		$data['banComparetoolNum'] = (int)$ret["banComparetoolNum"];
		$this->returnData($data,0,"刷新当前充值,金币奖券道具的改变");

	}

	public function after() {
		$this->deinitDataRedis();
	}

}


?>
